
package com.heimali.happyreader.core.intf;

public interface IStoppable {

    /**
     * Requested by parent to terminate immediately. 
     * After this method call, should terminate all network, file, database operation.
     * And stop any thing else that may use the phone's resources. 
     * 
     * Do not set anything to null here. This will be done in {{@link #destroy()}
     * 
     */
    public void stopNow();

    public boolean isStopped();

    /**
     * Last method called in the object, release/close all the resources. Set every this to null if needed.
     */
    public void destroyNow();
}
